chrome.windows.onCreated.addListener(function(w) {
  var x = parseInt(localStorage["x"], 10);
  var y = parseInt(localStorage["y"], 10);
  var w1 = parseInt(localStorage["w"], 10);
  var h1 = parseInt(localStorage["h"], 10);
  chrome.windows.update(w.id, {left:x, top:y, width:w1, height:h1});
});
